package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by liangweikang on 19/7/3.
 */

@Entity
@Data
@Table(name = "room")
@ApiModel(value = "RoomEntity", description = "聊天室")
@DynamicInsert
@DynamicUpdate
public class RoomEntity {

    @Id
    @ApiModelProperty(value = "id")
    @Column(name = "room_id")
    private String roomId;

    @ApiModelProperty(value = "id")
    @Column(name = "partya_hx_name")
    private String partyaHxName;

    @ApiModelProperty(value = "id")
    @Column(name = "partyb_hx_name")
    private String partybHxName;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "task_id")
    @Column(name = "task_id")
    private String taskId;
}
